<link rel="stylesheet" type="text/css" href="/scripts/jquery/plugins/treeView/jquery.treeview.css" />
<script type="text/javascript" src="/scripts/jquery/plugins/treeView/jquery.treeview.js"></script>
<script type="text/javascript" src="/scripts/jquery/plugins/jquery.cookie.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    
    // first example
    $(".left_inner_menu_tree").treeview({
    	persist: "location",
		collapsed: true,
		unique: true
       
    });

 


});
</script>


<?php 
$navigation  = new Arm_Navigation();
$urlActive   = $this->url(array()); 
$idNodeActiv = $navigation->getIdNodeUrl($urlActive, 'admin');
if($idNodeActiv === false) {
    if($this->layout()->leftMenu !== null)
    {
      $idNodeActiv = $navigation->getIdNodeUrl($this->layout()->leftMenu, 'admin');
      $urlActive = $this->layout()->leftMenu;
    }
    if($idNodeActiv === false) {
        $idNodeActiv = null;
        $urlActive = null;
    }
}
$data = $navigation->getMenuDataOpen($idNodeActiv, 'admin');
$container = new Zend_Navigation($data);
if($urlActive !== null) {
    $container->findBy('uri', $urlActive)->setActive();
}
$this->navigation($container)->menu()->setUlClass('left_inner_menu_tree');
echo $this->navigation()->menu();
?>
